import request from '../utils/request'

export const authApi = {
  login: (username: string, password: string) => {
    return request.post('/auth/login', { username, password })
  },
  
  register: (username: string, email: string, password: string) => {
    return request.post('/auth/register', { username, email, password })
  },
  
  getProfile: () => {
    return request.get('/auth/profile')
  },
  
  logout: () => {
    return request.post('/auth/logout')
  }
}

